package com.yxw.yxnet_cd_center.customer_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author liuxin
 * @date 2023.09.17
 */
@Data
@TableName("yx_cs_flock")
@ApiModel("群实体")
public class YxCsFlockEntity implements Serializable {

    private static final long serialVersionUID = 91694940569743L;
    /*
     *群ID
     */
    @TableId(value = "flock_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "群ID")
    private Long id;
    /*
     *群名称
     */
    @TableField("flock_name")
    @ApiModelProperty(value = "群名称")
    private String flockName;
    /*
     *群主ID
     */
    @TableField("leader_id")
    @ApiModelProperty(value = "群主ID")
    private Long leaderId;
    /*
     *群主名称
     */
    @TableField("leader_name")
    @ApiModelProperty(value = "群主名称")
    private String leaderName;
    /*
     *所属工作组ID
     */
    @TableField("group_id")
    @ApiModelProperty(value = "所属工作组ID")
    private Long groupId;

    /*
     *关联端口
     */
    @TableField("port_id")
    @ApiModelProperty(value = "关联端口")
    private Long portId;

    /*
     *关联端口名称
     */
    @TableField("port_name")
    @ApiModelProperty(value = "关联端口")
    private String portName;
    /*
     *关联端口名称
     */
    @TableField("port_code")
    @ApiModelProperty(value = "关联端口编码")
    private String portCode;
    /*
     *创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private java.util.Date createTime;
    /*
     *创建人ID
     */
    @TableField("create_id")
    @ApiModelProperty(value = "创建人ID")
    private Long createId;
    /*
     *创建人名称
     */
    @TableField("create_name")
    @ApiModelProperty(value = "创建人名称")
    private String createName;
    /*
     *状态 0启用1：禁用
     */
    @TableField("status")
    @ApiModelProperty(value = "状态 0启用1：禁用")
    private Integer status;
    /*
     *关联项目
     */
    @TableField("project_type")
    @ApiModelProperty(value = "关联项目")
    private Long projectType;

    /*
     *关联项目
     */
    @TableField("project_type_name")
    @ApiModelProperty(value = "关联项目名称")
    private String projectTypeName;

    /*
     *创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField("update_time")
    private java.util.Date updateTime;
    /*
     *创建人ID
     */
    @TableField("update_id")
    @ApiModelProperty(value = "创建人ID")
    private Long updateId;
    /*
     *创建人名称
     */
    @TableField("update_name")
    @ApiModelProperty(value = "更新人名称")
    private String updateName;

    @TableField("service_type")
    @ApiModelProperty(value = "服务类型")
    private Long serviceType;

    @TableField("service_type_code")
    @ApiModelProperty(value = "服务类型编码")
    private String serviceTypeCode;

    @TableField("service_type_name")
    @ApiModelProperty(value = "服务类型名称")
    private String serviceTypeName;
}